home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
DEMO_VGA
/
UTILEGA1.LZH
/
PALLETTE.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-07-07
|
640b
|
52 lines
page 66,132
code segment para public 'code'
org 100h
assume cs:code,ds:code,es:code,ss:code
start proc far
mov bx,0
loop: mov ax,1000h
int 10h
mov ah,0
int 16h
cmp al,'r'
jz red
cmp al,'g'
jz green
cmp al,'b'
jz blue
sub al,'0'
jb quit
cmp al,16
jae quit
xor bh,bh
mov bl,al
jmp short loop
red: xor bh,20h
test bh,20h
jnz loop
xor bh,4
jmp loop
green: xor bh,10h
test bh,10h
jnz loop
xor bh,2
jmp loop
blue: xor bh,08h
test bh,08h
jnz loop
xor bh,1
jmp loop
quit: int 20h
start endp
code ends
end start